77 static unsigned int node_id_count_;
105 NodeBase(
const std::string& _category,
const std::string& _type =
"Undefined",
const std::string& _name =
"");
113 unsigned int nodeId()
const;
137 void setType(
const std::string& _type);
141 void setName(
const std::string& _name);
158inline NodeBase::NodeBase(
const std::string& _category,
const std::string& _type,
const std::string& _name)
160 node_id_(++node_id_count_),
161 node_category_(_category),
Base class for Nodes.
Definition: node_base.h:73
std::string node_type_
Type or subcategory of node (derived class name: "SensorOdom2d", etc)
Definition: node_base.h:88
unsigned int node_id_
Node id. It is unique over the whole Wolf Tree.
Definition: node_base.h:86
bool isRemoving() const
Returns whether the node is being removed.
Definition: node_base.h:189
std::string node_category_
Text label identifying the category of node ("SENSOR", "FEATURE", etc)
Definition: node_base.h:87
std::string getType() const
Returns the type (subcategory) of the node.
Definition: node_base.h:179
bool is_removing_
A flag for safely removing nodes from the Wolf tree. See remove().
Definition: node_base.h:92
void setName(const std::string &_name)
Sets the name of the node.
Definition: node_base.h:199
std::string getName() const
Returns the name of the node.
Definition: node_base.h:184
unsigned int nodeId() const
Returns the node id, unique over the whole Wolf tree.
Definition: node_base.h:169
std::string node_name_
Definition: node_base.h:89
ProblemWPtr problem_ptr_
Problem the node belongs to.
Definition: node_base.h:84
virtual ~NodeBase()=default
Destructor.
std::string getCategory() const
Returns the category of the node.
Definition: node_base.h:174
virtual void setProblem(ProblemPtr _prob_ptr)
Sets the problem the node belongs to.
Definition: node_base.h:214
void setType(const std::string &_type)
Sets the type (subcategory) of the node.
Definition: node_base.h:194
NodeBase(const std::string &_category, const std::string &_type="Undefined", const std::string &_name="")
Constructor.
Definition: node_base.h:158
ProblemConstPtr getProblem() const
Returns the problem the node belongs to.
Definition: node_base.h:204
virtual bool hasChildren() const =0
Returns whether the node has children in the Wolf tree.
Wolf problem: root of the wolf tree (hardware, trajectory and map). It manages the motion providers,...
Definition: problem.h:66
Definition: capture_base.h:23